<!--作者:于大明-->
<template>
	<view class="my-head">
		<view class="bg-white">
			<uni-list-item :border="false" :clickable="true" show-arrow to="/pages/40mySub/myInfo/myInfo" link="navigateTo" >
				<template #body>
					<view class="d-flex flex-column">
						<view class="d-flex">
							<image style="width: 100rpx;height: 100rpx"
								:src="'https://pic.cwyyt.cn/upload/yyticons/163505355_name.png'" />
							<view class="font-lg ml-2">{{$globalData.userInfo.nickName}} </view>
						</view>
						<view v-if="$globalData.userInfo.mbVipEndTime">会员到期时间:<text class="text-red ml-1">{{calHyTimeStr}}</text></view>
						<view v-if="$globalData.userInfo.userNoMoneyCount">当日剩余免费下载:<text class="text-red ml-1">{{$globalData.userInfo.userNoMoneyCount}}</text>次</view>
					</view>
				</template>
			</uni-list-item>
		</view>


	<!-- 	<view class="cu-bar bg-white solid-bottom margin-top">
			<view class="action">
				<text class="cuIcon-title text-orange "></text>我的订单
			</view>
			<view class="action">
				<button class="cu-btn bg-green shadow" @tap="showModal" data-target="gridModal">设置</button>
			</view>
		</view> -->

		<view class="cu-list grid col-4 no-border mt-1"  >
			<view class="cu-item" v-for="(item,index) in cuIconList" :key="index" @tap="$cw.navTo(`/pages/40mySub/myOrder/myOrder?tabIndex=${index}`)">
				<view :class="['cuIcon-' + item.cuIcon,'text-' + item.color]">
					<view class="cu-tag badge" v-if="item.badge!=0">
						<block v-if="item.badge>0">{{item.badge>99?'99+':item.badge}}</block>
					</view>
				</view>
				<text>{{item.name}}</text>
			</view>
		</view>

	</view>
</template>

<script src="./my-head.js"></script>

<style lang="less" scoped>
	@import url('my-head.less');
</style>